package com.yuanfeng.userms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.userms.dto.AdminDepartmentDTO;
import com.yuanfeng.userms.entity.UserAdminDepartmentEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Entity com.yuanfeng.userms.entity.UserAdminDepartment
 */
@Mapper
public interface UserAdminDepartmentMapper extends BaseMapper<UserAdminDepartmentEntity> {

    /**
     * 查询用户信息
     *
     * @param id
     * @return
     */
    Integer selectDepartmentIsUser(@Param("id") Integer id);


    /**
     * 新增
     *
     * @param adminDepartmentDto
     */
    void addDepartment(@Param("param") AdminDepartmentDTO adminDepartmentDto);
}




